import router from "@@/router";

export function toArticlePage(
  data: ArticlePageData,
  mode: "push" | "replace" = "push"
) {  
  router[mode]({ name: "articlePage", query: { ...data } });
}
export interface ArticlePageData {
  title: string;
  pageTitle?: string;
  createAt: string;
  content: string;
}
